import { Component } from '@angular/core';
import { ROUTER_DIRECTIVES } from '@angular/router';
import { FuhaoService } from './fuhao.service';



@Component({
	selector: 'my-app',
	directives: [ROUTER_DIRECTIVES],
	providers: [FuhaoService],
	template: `
	  <h1>{{title}}</h1>
	  <nav>
        <a [routerLink]="['/top4']" routerLinkActive="active">四大富豪</a>
        <a [routerLink]="['/fuhaos']" routerLinkActive="active">富豪排行榜</a>
      </nav>
	  <router-outlet></router-outlet>
	  `,
	  styleUrls: ['app/app.component.css']
})

export class AppComponent {
	title = '恒拓富豪榜';
	 
}